package com.comando.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * ChannelT entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "channel_t", catalog = "qunar")
public class ChannelT implements java.io.Serializable {

	// Fields

	private Integer channelId;
	private Integer groupContriLevel;
	private Integer groupVisitLevel;
	private Integer parent;
	private String name;
	private String content;
	private String titleImg;
	private String contentImg;
	private String tplIndex;
	private String tplContent;
	private String title;
	private String keywords;
	private String description;
	private Long docCount;
	private Integer seq;
	private Boolean hasTitleimg;
	private Boolean hasChild;
	private Boolean isDisplay;
	private String state;

	// Constructors

	/** default constructor */
	public ChannelT() {
	}

	/** minimal constructor */
	public ChannelT(Long docCount, Integer seq, Boolean hasTitleimg,
			Boolean hasChild, Boolean isDisplay, String state) {
		this.docCount = docCount;
		this.seq = seq;
		this.hasTitleimg = hasTitleimg;
		this.hasChild = hasChild;
		this.isDisplay = isDisplay;
		this.state = state;
	}

	/** full constructor */
	public ChannelT(Integer groupContriLevel, Integer groupVisitLevel,
			Integer parent, String name, String content, String titleImg,
			String contentImg, String tplIndex, String tplContent,
			String title, String keywords, String description, Long docCount,
			Integer seq, Boolean hasTitleimg, Boolean hasChild,
			Boolean isDisplay, String state) {
		this.groupContriLevel = groupContriLevel;
		this.groupVisitLevel = groupVisitLevel;
		this.parent = parent;
		this.name = name;
		this.content = content;
		this.titleImg = titleImg;
		this.contentImg = contentImg;
		this.tplIndex = tplIndex;
		this.tplContent = tplContent;
		this.title = title;
		this.keywords = keywords;
		this.description = description;
		this.docCount = docCount;
		this.seq = seq;
		this.hasTitleimg = hasTitleimg;
		this.hasChild = hasChild;
		this.isDisplay = isDisplay;
		this.state = state;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CHANNEL_ID", unique = true, nullable = false)
	public Integer getChannelId() {
		return this.channelId;
	}

	public void setChannelId(Integer channelId) {
		this.channelId = channelId;
	}

	@Column(name = "GROUP_CONTRI_LEVEL")
	public Integer getGroupContriLevel() {
		return this.groupContriLevel;
	}

	public void setGroupContriLevel(Integer groupContriLevel) {
		this.groupContriLevel = groupContriLevel;
	}

	@Column(name = "GROUP_VISIT_LEVEL")
	public Integer getGroupVisitLevel() {
		return this.groupVisitLevel;
	}

	public void setGroupVisitLevel(Integer groupVisitLevel) {
		this.groupVisitLevel = groupVisitLevel;
	}

	@Column(name = "PARENT")
	public Integer getParent() {
		return this.parent;
	}

	public void setParent(Integer parent) {
		this.parent = parent;
	}

	@Column(name = "NAME", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "TITLE_IMG", length = 100)
	public String getTitleImg() {
		return this.titleImg;
	}

	public void setTitleImg(String titleImg) {
		this.titleImg = titleImg;
	}

	@Column(name = "CONTENT_IMG", length = 100)
	public String getContentImg() {
		return this.contentImg;
	}

	public void setContentImg(String contentImg) {
		this.contentImg = contentImg;
	}

	@Column(name = "TPL_INDEX", length = 100)
	public String getTplIndex() {
		return this.tplIndex;
	}

	public void setTplIndex(String tplIndex) {
		this.tplIndex = tplIndex;
	}

	@Column(name = "TPL_CONTENT", length = 100)
	public String getTplContent() {
		return this.tplContent;
	}

	public void setTplContent(String tplContent) {
		this.tplContent = tplContent;
	}

	@Column(name = "TITLE")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "KEYWORDS")
	public String getKeywords() {
		return this.keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "DOC_COUNT", nullable = false)
	public Long getDocCount() {
		return this.docCount;
	}

	public void setDocCount(Long docCount) {
		this.docCount = docCount;
	}

	@Column(name = "SEQ", nullable = false)
	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	@Column(name = "HAS_TITLEIMG", nullable = false)
	public Boolean getHasTitleimg() {
		return this.hasTitleimg;
	}

	public void setHasTitleimg(Boolean hasTitleimg) {
		this.hasTitleimg = hasTitleimg;
	}

	@Column(name = "HAS_CHILD", nullable = false)
	public Boolean getHasChild() {
		return this.hasChild;
	}

	public void setHasChild(Boolean hasChild) {
		this.hasChild = hasChild;
	}

	@Column(name = "IS_DISPLAY", nullable = false)
	public Boolean getIsDisplay() {
		return this.isDisplay;
	}

	public void setIsDisplay(Boolean isDisplay) {
		this.isDisplay = isDisplay;
	}

	@Column(name = "STATE", nullable = false, length = 2)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}


}